﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Maticsoft.Web
{
    public partial class Footer : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            BLL.EmailList bll = new BLL.EmailList();
            Model.EmailList model = new Model.EmailList();
            model.Email = txtEmail.Text.Trim();
            model.CreateTime = DateTime.Now;

            bll.Add(model);

            Response.Redirect("~/Success.aspx");
        }
    }
}